package com.fourth.fronted.dao;

import com.fourth.entity.CartItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CartItemMapper {
    /**
     * 根据用户id查询购物详情列表
     * @param uId
     * @return
     */
    List<CartItem> selectCartItemByUid(Integer uId);

    int updateStockNum(Integer num, Integer gid);


}
